<template>
<div>
  <el-row>
    问卷名：{{title}}
  </el-row>
  <el-row>
    创建人：{{Creator}}
  </el-row>
  <el-row>
    目标人群：{{Target}}
  </el-row>
  <el-row>
    预期收益：{{Expected}}
  </el-row>
  <el-row>
    信息收集完成度：{{Schedule}}
  </el-row>
  <el-row>
    发布人的随机抽检：{{Random===true?'开启':'关闭'}}
  </el-row>
  <el-row>
    <el-button type="success" plain @click.native="copyTitle">复制问卷</el-button>
    <el-button type="success" plain>填写问卷</el-button>
  </el-row>
</div>
</template>

<script>
    export default {
        name: "Questionnaire_Content",
        props: {
            title: String
        },
        data(){
            return{
                Creator: 'DefaultCreator',
                Target: 'TargetGroup',
                Expected: 'xx元/每份问卷',
                Schedule: 'xx%',
                Random: true
            }
        },
        methods:{
          copyTitle(){
            this.$copyText(this.title).then(
              this.$message({
                message: `问卷标题复制成功！`,
                type: 'success'
              }),
              function(e) {
                console.log(this.$t("my.copeErr"));
              }
            );
          }
        }
    }
</script>

<style scoped>

div{
  margin-left: 20%;
  margin-bottom: 5%;
  margin-top: 5%;
}
</style>
